#pragma once

typedef unsigned long Item;

class Stack {
private:
  enum { MAX = 10 };
  Item item[MAX];
  int top;

public:
  Stack();
  bool isempty() const;
  bool isfull() const;
  bool push(const Item &item);
  bool pop(Item &item);
};
